﻿package com.liangzhong.model.task.vo
{
	import com.liangzhong.constants.TaskConst;
	import com.liangzhong.model.AppData;

    public class TaskAwardVo
    {
        public var type			:int;
        public var vals			:Number;
		public var pid			:int;//道具id

        public function TaskAwardVo()
        {
           
        }
		
		public function get tips():String
		{
			var info :String = "";
			switch(type)
			{
				case TaskConst.TASK_AWARD_TYPE_MONEY1:
				{
					info = "游戏币" ;
					break;
				}
				case TaskConst.TASK_AWARD_TYPE_MONEY2:
				{
					info = "金币" ;
					break;
				}
				case TaskConst.TASK_AWARD_TYPE_MONEY3:
				{
					info = "点券" ;
					break;
				}
				case TaskConst.TASK_AWARD_TYPE_EXP:
				{
					info = "经验" ;
					break;
				}
				case TaskConst.TASK_AWARD_TYPE_ITEM:
				{
					var shopVo :Object// = AppData.getInstance().shopDataManager.getGooodVoById(pid);
					if(shopVo)
					{
						info = shopVo.name + "";
					}
					else
					{
						info = "道具";
					}
					break;
				}
			}
			return info;
		}
    }
}
